package com.wuchao.spring.ioc.p;

import com.wuchao.entity.Entry;

/**
 * @Author wuchao66
 * @Date 2023/9/23 11:34
 * @PackageName:com.wuchao.spring.ioc.p
 * @ClassName: P
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class P {//get/set--容易报错 --垃圾
    private Entry entry;

    public Entry getEntry() {
        return entry;
    }

    public void setEntry(Entry entry) {
        this.entry = entry;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name;

    public void show(){
        System.out.println(entry.getTitle()+name);
    }
}
